/*
----------------------------------------------------------------------------
Copyright (c) 2005 - 2009, Wangxing SHI	<swxlion@gmail.com>

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above
	  copyright notice, this list of conditions and the
	  following disclaimer.

    * Redistributions in binary form must reproduce the above
	  copyright notice, this list of conditions and the following
	  disclaimer in the documentation and/or other materials
	  provided with the distribution.

    * Neither the copyright holder's name nor the names of its
	  contributors may be used to endorse or promote products
	  derived from this software without specific prior written
	  permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------------
*/

/*----------------------------- TypeDefine.h ------------------------------*/
/*===========================================================================
FILE: TypeDefine.h
Author: Wangxing SHI (swxlion)
Version: 0.0.2 
Date: 2009-04-28

File Description:
    Define the uniform type for Luna Log.
	This file is modified from the file which has the some name in the Luna Log's
brother project ASDL (http://libasdl.sourceforge.net). Only changed the namespace.

Dependencies:
    Platform: Platform Independent.

History:
    version        author        date       description
	----------------------------------------------------
	0.0.1          swxlion       07-04-10   Created the first version. 
	0.0.2          swxlion       09-04-28   Modified from ASDL version.
===========================================================================*/
#ifndef _LUNA_LOG__TYPEDEFINE_H_
#define _LUNA_LOG__TYPEDEFINE_H_

/*-------------------------------------------------------------------
  MACRO DEFINITIONS
---------------------------------------------------------------------*/
#ifndef _MSC_VER
	#ifndef FALSE
		#define FALSE false
	#endif
	#ifndef TRUE
		#define TRUE true
	#endif
	#ifndef MAX_PATH
		#define MAX_PATH 260
	#endif
#else
#include<windows.h>
#endif

/*-------------------------------------------------------------------
  TYPEDEF DEFINITIONS
---------------------------------------------------------------------*/
namespace LunaLog
{
#ifndef _MSC_VER
	typedef bool			BOOL;

	typedef void			VOID;
	typedef void			*LPVOID;

	typedef int				INT;
	typedef	unsigned int	UINT;

	typedef long			LONG;
	typedef	unsigned long	ULONG;
	typedef	unsigned long	DWORD;

	typedef char			CHAR;
	typedef CHAR			*LPSTR;
	typedef const CHAR		*LPCSTR;

	typedef wchar_t			WCHAR;
	typedef WCHAR			*LPWSTR;
	typedef const WCHAR		*LPCWSTR;

#if defined(_UNICODE) || defined(UNICODE)
	typedef wchar_t			TCHAR;
#else
	typedef char			TCHAR;
#endif

	typedef TCHAR			*LPTSTR;
	typedef const TCHAR		*LPCTSTR;

#endif // _MSC_VER

	typedef long			RESULT;
	typedef	unsigned long	URESULT;
}

#endif // _LUNA_LOG__TYPEDEFINE_H_
